package com.sky.service;

import com.sky.result.Result;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {
    /**
     * 营业额统计接口
     * @param begin
     * @param end
     * @return
     */
    Result turnoverStatistics(LocalDate begin, LocalDate end);
    /**
     * 用户统计接口
     * @param begin
     * @param end
     * @return
     */
    Result userStatistics(LocalDate begin, LocalDate end);
    /**
     * 订单统计接口
     * @param begin
     * @param end
     * @return
     */
    Result<OrderReportVO> ordersStatistics(LocalDate begin, LocalDate end);
    /**
     * 查询销量排名top10接口
     * @param begin
     * @param end
     * @return
     */
    Result<SalesTop10ReportVO> topStatistics(LocalDate begin, LocalDate end);
    /**
     * 导出运营数据报表
     * @param response
     * @return
     */
    void exportBusinessData(HttpServletResponse response);
}
